package com.antdesignbackend.backend.mapper;

import com.antdesignbackend.backend.entity.entityVo.AppletRoomVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface AppletRoomMapper {

    /**
     * 查询总数
     * @param queryWrapper
     * @return
     */
    Integer count(@Param(Constants.WRAPPER) QueryWrapper<AppletRoomVo> queryWrapper);
    /**
     * 查询 room_view 视图，获得商铺信息
     * @return
     */
    List<AppletRoomVo> getRoomView(@Param(Constants.WRAPPER) QueryWrapper<AppletRoomVo> appletRoomVoQueryWrapper,
                                   Page<AppletRoomVo> page);
}
